package com.lifeng.patterns.proxy;

/**
 * Created by lifeng on 2019/8/15.
 * 王婆(代理对象)
 */
public class WangPo implements HighWomen{
    private HighWomen highWomen;

    public WangPo(){
        //默认代理了潘
        this.highWomen = new Panjinlian();
    }

    public WangPo(HighWomen highWomen){
        //还可以代理别的嗨的女人
        this.highWomen = highWomen;
    }

    @Override
    public void high() {
        highWomen.high();
    }
}
